#
# Recipe for rtl904x-sdk

LICENSE = "CLOSED"
LIC_FILES_CHKSUM = ""

SRC_URI = " \
	file://RTL904x_series_SDK_V3.22.0.100521.tar.gz \
    file://0001-add-mdcmdio-Interface-injection-and-Makefile.patch \
"

TARGET_CFLAGS += "-Wno-unused-parameter -Wno-error=sign-compare -Wno-error=maybe-uninitialized -DRTL9040_SDK"
BUILD_CFLAGS += "-Wno-unused-parameter -Wno-error=sign-compare -Wno-error=maybe-uninitialized -DRTL9040_SDK"

S = "${WORKDIR}/RTL904x_series_SDK_V3.22.0.100521"

BBCLASSEXTEND += "native"
FILES_${PN}-dev =""

do_install () {
    install -d ${D}${libdir}/
    install -m 0755 ${B}/librtl904x.so ${D}${libdir}/
    install -d ${D}${includedir}/
    cp -rf ${B}/include/* ${D}${includedir}/
}

RPROVIDES_${PN} += " librtl904x"

FILES_${PN} = " \
	${libdir}/librtl904x.so \
    ${includedir} \
    ${includedir}/* \
    ${includedir}/asicdrv \
    ${includedir}/asicdrv/* \
    ${includedir}/asicdrv/basic \
    ${includedir}/asicdrv/basic/* \
"